:root {
    --primary-color: #FFD700;
    --secondary-color: #4ecdc4;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --accent-color: #ffd166;
}

.middle {
	margin-top: 20px;
	border-radius: 12px;
	box-shadow: 0px 10px 15px 0.1px rgba(0, 0, 0, 0.2);
	margin-bottom: 50px;
	background-color: white;
	padding-top: 10px;
	padding-bottom: 10px;
}


.carousel-item {
    height: 450px;
    position: relative;
	
}

.carousel-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    left: 10%;
    right: 40%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.carousel-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.carousel-btn:hover {
    background-color: #f9e785;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255,107,107,0.4);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(255,255,255,0.3);
    opacity: 1;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        right: 10%;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-description {
        font-size: 0.95rem;
    }
    
    .stats-bar {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
.tags{
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}
.tags ul li{
	transition: all 0.3s ease;
	height: 50px;
	line-height: 50px;
	border-radius: 10px;
}
.tags-link{
	margin: 5px;
	color: black;
	transition: all 0.3s ease;
}
.t-link1:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.t-link2:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.t-link3:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.t-link4:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.t-link5:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.t-link6:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.b-link1:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.b-link2:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.b-link3:hover{
	background-color: #ffd166;
	color: #ecf0f1;
}
.b-link4:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.b-link5:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.b-link6:hover{
	background-color: #f4e1b5;
	color: #ecf0f1;
}
.goods{
	border-radius: 10px;
}
.goods ul{
	margin-bottom: 30px;
}
.good-link{
	height: 250px;
	transition: all 0.3s ease;
	border-radius: 10px;
	padding: 5px;
}

.good-link:hover{
	box-shadow: 0px 10px 15px 0.1px rgba(0, 0, 0, 0.2);
}
.good-link a{
	height: 100%;
	color: black;
}
.good-link a div{
	border-radius: 10px;
	width: 49%;
	height: 100%;
	display: inline-block;
}
.goods-img{
	width: 100%;
	height: 100%;
	border-radius: 10px;
}
/* .goods-img:hover{
	transform: scale(1.1);
	transition: all 0.3s ease;
} */
.good-info p{
	margin: 0px;
	height: 30%;
	width:100%
	white-space: nowrap;        /* 强制文本不换行 */
  	overflow: hidden;          /* 隐藏超出部分 */
  	text-overflow: ellipsis; 
}
.good-info .price{
	height: 30%;
	font-weight: bold;
	font-size: 20px;
	color: red;
	margin-top: 0px;
}
/* 骨架屏加载动画 */
@keyframes shimmer {
    0% { background-position: -468px 0 }
    100% { background-position: 468px 0 }
}

/* 骨架屏商品卡片 */
.skeleton-card {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    animation: fadeIn 0.3s ease-out;
}

.skeleton-content {
    padding: 15px;
}

.skeleton-img {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 104px;
}

.skeleton-line {
    height: 12px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 104px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-price {
    height: 20px;
    width: 40%;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 15px 0;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 104px;
}

.skeleton-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #f0f0f0;
    display: inline-block;
    vertical-align: middle;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 104px;
}

.skeleton-name {
    height: 12px;
    width: 60%;
    background: #f0f0f0;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    border-radius: 4px;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 104px;
}

/* 加载完成后的淡入效果 */
.good-link {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载进度条 */
.loading-bar {
    height: 3px;
    background: linear-gradient(to right, #4ecdc4, #ffd166);
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    z-index: 9999;
    transition: width 0.3s ease;
}

.loading-bar.complete {
    opacity: 0;
    transition: opacity 0.5s ease;
}